<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <!-- 文本域 -->
    <textarea v-model="textareaStr"></textarea>
    <hr>
    <!-- 复选框 -->
    <!-- 1. 单个复选框  值是布尔类型 -->
    <input type="checkbox" v-model="isChecked">
    <!-- 2. 多个复选框 -->
    <input type="checkbox" value="ball" v-model="hobby"> 打球
    <input type="checkbox" value="game" v-model="hobby"> 游戏
    <input type="checkbox" value="book" v-model="hobby"> 看书
    <hr>
    <!-- 单选框 -->
    <input type="radio" value="男" v-model="gender"> 男
    <input type="radio" value="女" v-model="gender"> 女
    <hr>
    <!-- 下拉框 -->
    <select v-model="city">
      <option value="">请选择</option>
      <option value="1">北京</option>
      <option value="2">天津</option>
      <option value="3">武汉</option>
    </select>
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        textareaStr: 'hi vue',
        isChecked: true,
        hobby: [],
        gender: '男',
        city: ''
      }
    })
  </script>
</body>
</html>